#ifndef LANGUAGE_H
#define LANGUAGE_H

#include <QObject>
#include <QString>

class Language : public QObject
{
    Q_OBJECT
public:
    explicit Language(QObject *parent = 0);
    explicit Language(const QString &icon, const QString &code,
                      const QString &name, QObject *parent = 0);

    ~Language();

    Language & operator=(const Language &oth);
    Language & operator!=(const Language &oth);
    Language & operator==(const Language &oth);

    QString getIcon() const {
        return m_icon;
    }

    QString getCode() const {
        return m_code;
    }

    QString getName() const {
        return m_name;
    }

    void setIcon(const QString &code) {
        m_icon = code;
    }

    void setCode(const QString &code) {
        m_code = code;
    }

    void setName(const QString &name) {
        m_name = name;
    }
private:
    QString m_icon, m_code, m_name;
};

#endif // LANGUAGE_H
